Skip to content

Add group to frontend and dcar match summary page data models#15079

Merged
marjisound merged 4 commits intomainfrom
add-group-to-football-match-page-data-model
Jan 26, 2026
Merged

Add group to frontend and dcar match summary page data models#15079
marjisound merged 4 commits intomainfrom
add-group-to-football-match-page-data-model

Conversation

@marjisound
Copy link
Contributor

@marjisound marjisound commented Jan 6, 2026

What does this change?

This PR

  • Updates type FEFootballMatchPage with a new field group
  • Creates 2 new types FEGroupSummary & FELeagueTableEntrySummary to remove results from entry
  • Adds DCAR types FootballTableSummary & EntrySummary

This is because for the new design of the match info (summary) page, we need to include a summary of the league table group rather than the whole league table. Also to optimise performance and payload size, the new *Summary types explicitly exclude detailed match results, as they are not required for this view.

The frontend PR for this guardian/frontend#28495

Test

This was tested locally and in code. Currently it doesn't have any impact on the page since the new component FootballMatchInfo is not yet wired up within the pages

This PR fixes part of #14904

IMPORTANT NOTE

I found a bug in the change I made in frontend guardian/frontend#28495 to update the data model. I fixed it in a second PR guardian/frontend#28542. So this DCAR PR can ONLY be merged after guardian/frontend#28542

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

@marjisound marjisound changed the title Add group to fe and dcar match page data models Add group to frontend and dcar match summary page data models Jan 6, 2026
@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Jan 6, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jan 6, 2026
@marjisound marjisound force-pushed the add-group-to-football-match-page-data-model branch from b989524 to ac9c16c Compare January 21, 2026 07:50
@marjisound marjisound added the feature Departmental tracking: work on a new feature label Jan 21, 2026
@marjisound marjisound marked this pull request as ready for review January 21, 2026 07:51
@marjisound marjisound requested a review from a team as a code owner January 21, 2026 07:51
@github-actions
Copy link

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@marjisound marjisound self-assigned this Jan 21, 2026
Copy link
Contributor

@JamieB-gu JamieB-gu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, one question.


export type FEFootballMatchPage = FEFootballDataPage & {
footballMatch: FEFootballMatch;
group?: FEGroupSummary;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there occasions when we don't have a group for a particular match?

Copy link
Contributor Author

@marjisound marjisound Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, I think we expect to have league table for all our competitions, but in our data, we are considering the possibility of the league table to be empty and use hasLeagueTable to indicate if the competition has a league table.

Now I'm thinking what should we do in a case like the match summary (match info) page? Do you think it might make more sense to make the group a mandatory field?

For now I merge this, but lets talk about again. I created this issue so we won't forget this #15204

@marjisound marjisound added the run_chromatic Runs chromatic when label is applied label Jan 26, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Jan 26, 2026
@marjisound marjisound merged commit 215c193 into main Jan 26, 2026
35 of 36 checks passed
@marjisound marjisound deleted the add-group-to-football-match-page-data-model branch January 26, 2026 09:06
@gu-prout
Copy link

gu-prout bot commented Jan 26, 2026

Seen on PROD (merged by @marjisound 10 minutes and 7 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants